#ifndef MONITORINGHISTORYDATA_H
#define MONITORINGHISTORYDATA_H

#include <QWidget>
#include "MonitoringDataModel.h"
#include "deviceModel.h"
#include "MonitoringRealTabModel.h"
#include <QJsonArray>
namespace Ui {
class MonitoringHistoryData;
}

class MonitoringHistoryData : public QWidget
{
    Q_OBJECT
public slots:
    void handleDataReceived(const QByteArray &);
    void getDataExcel();
public:
    explicit MonitoringHistoryData(QWidget *parent = nullptr,userModel*uModel=nullptr);
    ~MonitoringHistoryData();
    QList<MonitoringDataModel> getDataList(const QString &);
protected:
    void showEvent(QShowEvent *event) override;
public slots:
    void selectData();
private:
    Ui::MonitoringHistoryData *ui;
    userModel*uModel;
    QList<MonitoringDataModel> dataList;
    MonitoringRealTabModel tabModel;
};

#endif // MONITORINGHISTORYDATA_H
